package com.xuegao.xuegaololskills.jintellitype;

import java.util.Properties;

public final class Main {
    private Main() {
    }

    public static void main(String[] argv) {
        System.out.println("JIntellitype version \"" + getProjectVersion() + "\"");
        System.out.println(" ");
        System.out.println("Running on java version \"" + System.getProperty("java.version") + "\"" + " (build " + System.getProperty("java.runtime.version") + ")" + " from " + System.getProperty("java.vendor"));
        System.out.println("Operating environment \"" + System.getProperty("os.name") + "\"" + " version " + System.getProperty("os.version") + " on " + System.getProperty("os.arch"));
        System.out.println("For more information on JIntellitype please visit http://www.melloware.com");
    }

    private static String getProjectVersion() {
        String version;
        try {
            Properties pomProperties = new Properties();
            pomProperties.load(Main.class.getResourceAsStream("/META-INF/maven/com.melloware/jintellitype/pom.properties"));
            version = pomProperties.getProperty("version");
        } catch (Exception var2) {
            version = "RUNNING.IN.IDE.FULL";
        }

        return version;
    }
}
